math coffin problem